package com.multimedia.scala.euler

object Asd48 {
  def main(args : Array[String]) : Unit = {
      def power(x: BigInt) = x.pow(x.toInt)
      
      var arr = (1 to 1000).map(BigInt(_)).map(power(_)).sum
      
      println(arr)
  }
}
